package college;

import java.awt.BorderLayout;
import java.awt.Panel;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Dimension;
import javax.swing.BoxLayout;
import java.awt.Component;

// 학생정보수정
public class studenup extends JPanel {
	private JTextField textField_6;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;
	private JTextField textField_10;
	private JTextField textField;

	
	public studenup() {
		pn1();
		pn2();
		pn3();
	}
	

private void pn1(){
	setLayout(new BorderLayout(0, 0));
	JPanel infop = new JPanel();
	add(infop, BorderLayout.NORTH);
	
	JLabel infolab = new JLabel("학생 정보 수정");
	infop.add(infolab);
}
private void pn2(){
	JPanel panel = new JPanel();
	add(panel, BorderLayout.CENTER);
	panel.setLayout(new BorderLayout(0, 0));
	
	JPanel panel_1 = new JPanel();
	panel.add(panel_1, BorderLayout.WEST);
	panel_1.setLayout(new BoxLayout(panel_1, BoxLayout.PAGE_AXIS));
	
	JLabel lblNewLabel_1 = new JLabel("학번");
	lblNewLabel_1.setAlignmentY(Component.BOTTOM_ALIGNMENT);
	panel_1.add(lblNewLabel_1);
	
	JLabel lblNewLabel = new JLabel("이름");
	lblNewLabel.setAlignmentY(Component.BOTTOM_ALIGNMENT);
	panel_1.add(lblNewLabel);
	
	JLabel lblNewLabel_2 = new JLabel("패스워드");
	lblNewLabel_2.setAlignmentY(Component.BOTTOM_ALIGNMENT);
	panel_1.add(lblNewLabel_2);
	
	JLabel lblNewLabel_3 = new JLabel("전화번호");
	panel_1.add(lblNewLabel_3);
	
	JLabel lblNewLabel_4 = new JLabel("소속학과");
	panel_1.add(lblNewLabel_4);

	JPanel panel2 = new JPanel();
	panel.add(panel2, BorderLayout.CENTER);
	
	
	textField = new JTextField();
	panel2.add(textField);
	textField.setColumns(10);
	
	textField_7 = new JTextField();
	panel2.add(textField_7);
	textField_7.setColumns(10);
	
	textField_8 = new JTextField();
	panel2.add(textField_8);
	textField_8.setColumns(10);
	
	textField_9 = new JTextField();
	panel2.add(textField_9);
	textField_9.setColumns(10);
	
	textField_10 = new JTextField();
	panel2.add(textField_10);
	textField_10.setColumns(10);
	
	textField_6 = new JTextField();
	panel2.add(textField_6);
	textField_6.setColumns(10);
	
	
}

private void pn3(){
	JPanel panel_2 = new JPanel();
	panel_2.setPreferredSize(new Dimension(200, 10));
	add(panel_2, BorderLayout.EAST);
	
	JPanel panel_3 = new JPanel();
	panel_3.setPreferredSize(new Dimension(10, 50));
	add(panel_3, BorderLayout.SOUTH);
	panel_3.setLayout(new BorderLayout(0, 0));
	
	JPanel panel_5 = new JPanel();
	panel_3.add(panel_5, BorderLayout.CENTER);
	
	JButton btnNewButton = new JButton("확인");
	panel_5.add(btnNewButton);

}


}

	
